home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 22 / Cream of the Crop 22.iso / bbs / fnos16a5.zip / HELP.ZIP / FTP < prev    next >
Text File  |  1996-10-15  |  8KB  |  153 lines

  1.  
  2. ftp <hostname> [<scriptfile>]
  3.  
  4.     The ftp command is used to make a TCP connection with <hostname>, and
  5.     then use File Transfer Protocol to exchange data between the systems.
  6.     Once the connection is established, a small set of commands is used
  7.     to manage the file exchange.  A command is executed locally if it is
  8.     a local client command.  Otherwise, the command is sent to <hostname>
  9.     for execution.  If <scriptfile> is provided, all commands are obtained
  10.     from the indicated file; otherwise, they are read from the console.
  11.     The following are commands supported by Jnos clients and servers:
  12.  
  13.      ?        Display all available command names.
  14.      help       Same as ?
  15.  
  16.      ascii      Treat the data to be transferred as ASCII text, so that
  17.                 line endings are used suitable to the receiving system.
  18.      binary     Treat the data to be transferred as binary data, that is,
  19.                 verbatim data not to be changed while storing on the
  20.                 receiving system.
  21.      type [a|b|l] Query the current transfer type value, or set it if <a|b|l>
  22.                 is given.  Use <ascii>, <binary> (or <image>). <logical 8>
  23.                 is also supported.
  24.  
  25.      reclzw [y|n] Query the state of the ftp client LZW-supported flag,
  26.                 or set it if <y|n> is supplied.  LZW compression is only
  27.                 supported for ASCII-type transfers.
  28.      sendlzw [y|n] Query the state of the ftp server LZW-supported flag,
  29.                 or set it if <y|n> is supplied.  LZW compression is only
  30.                 supported for ASCII-type transfers.
  31.  
  32.      batch [y|n] Query the state of the command batching flag, or set it
  33.                 if <y|n> is given.  Batching involves sending as many
  34.                 commands as possible before waiting for responses from
  35.                 <hostname>.
  36.      hash [y|n] Query the state of the hashmark flag, or set it if <y|n>
  37.                 is given.  Hashmarks are written to the screen for each
  38.                 1000 bytes written to the local file system.
  39.      verbose [n] Query verbosity of error handler, or set it if integer <n>
  40.                 is given.  0 => error msgs only, 1 => final msg only,
  41.                 2 => control msgs too, 3 => control msgs + hash marks,
  42.                 4 => control msgs + byte counts.
  43.  
  44.      dir spec   List the contents of the current directory on the remote
  45.                 system, in a verbose manner.  If <spec> is given, the subset
  46.                 that matches this file specification is listed.
  47.                     Example:  dir *.exe
  48.      list    Same as dir command.
  49.      ldir spec  Same as the dir command, but applied to the local system.
  50.      ls spec    List just the names in the current directory on the remote
  51.                 system.  If <spec> is given, the subset that matches this
  52.                 file specification is listed.
  53.                     Example:  ls *.exe
  54.      nlst       Same as ls command.
  55.  
  56.      cd path    Change to directory <path> on system <hostname>.
  57.      lcd path   Change to directory <path> on the local system.
  58.      mkdir dir  Create directory <dir> on the remote system.
  59.      lmkdir dir Create directory <dir> on the local system. 
  60.      rmdir dir  Delete (remove) directory <dir> on the remote system.
  61.  
  62.      get file   Transfer <file> from remote system TO the local system.
  63.      mget spec  Transfer all files matching <spec> from the remote system
  64.                 TO the local system.
  65.      view file  Transfer <file> from the remote system TO the local system's
  66.                 console screen.  The file is assumed to be an ASCII file!
  67.      resume file Restart an interrupted transfer of <file> from the remote
  68.                 system to the local system.  Checks are made to assure the
  69.                 file is consistent between systems.  This is a JNOS extension
  70.                 to the FTP standard.  Other non-compatible equivalents exist
  71.                 in other implementations (c.f. wu-ftpd).
  72.  
  73.      put file   Transfer <file> to the remote system FROM the local system.
  74.      mput spec  Transfer all files matching <spec> to the remote system
  75.                 FROM the local system.
  76.      rput file  Resume an interrupted transfer of <file> to the remote system
  77.                 FROM the local system.  Checks are made to assure the
  78.                 file is consistent between systems.  This is a JNOS extension
  79.                 to the FTP standard.  Other non-compatible equivalents exist
  80.                 in other implementations (c.f. wu-ftpd).
  81.  
  82.      quit       Close the TCP connection to <hostname> and exit the ftp cmd.
  83.                 See also the Jnos "abort" command.
  84.  
  85.  
  86.     Since unrecognized commands are sent to the remote ftp server for
  87.     evaluation, additional commands may be available, depending upon the
  88.     ftp server implementation.  For example, the WU-FTPD may accept site-
  89.     written extensions, and thus allow:  site exec <extended_cmd> <cmd_args>.
  90.  
  91.     The remote ftp server will require a login name and password.  These
  92.     values may be provided by a file called "net.rc" by default (see
  93.     Hostname in nos.cfg).  The file has entries in this format:
  94.     remote_hostname   login_name   password
  95.  
  96.     but password may be omitted to instead have the client ftp prompt for
  97.     it.
  98.  
  99. FTN extensions:
  100.  
  101.     If 'ftnopt mode on' is used, the ftp command uses an ftp client
  102.     module modified for FTN operations. Signifcant changes have been
  103.     made to allow unattended, scripted transfers of Fidonet type mail
  104.     and files. If off, then the normal interactive ftp client module is
  105.     used and the ftn/ftp extensions have no effect. All of the normal
  106.     ftp commands from the interactive module are available from the
  107.     ftn/ftp module.
  108.  
  109.     When ftnmode is on, the same command line used to start an ftp
  110.     session is used. In place of the site name, an alias name is used.
  111.     This alias name is used to search the file "ftnalias.lst" located in
  112.     the main FNOS directory to obtain the site name, login name, and
  113.     password to use. The script filename is used to supply commands for
  114.     the ftp client to use.
  115.  
  116.     Format of the 'ftnalias.lst' file is:
  117.  
  118.     <aliasname> <sitename> <loginname> <password>
  119.  
  120.     One alias name per line. This alias name is also used in the log
  121.     file as the node number of the connection. The log file format is
  122.     also modified to output in BinkleyTerm format to capture transfer
  123.     information for inclusion in reports.
  124.  
  125.     Configurable options from autoexec.nos or the 'fnos>' command prompt
  126.     include:
  127.  
  128.         ftnopt dellocal [on|OFF]
  129.             This causes local files to be deleted after successful
  130.             transfers by using the 226 response from the server. It also
  131.             allows local files to be deleted should a transfer error
  132.             occur. (Note: there are some types of transfer failures
  133.             which won't trigger the local deletion.)
  134.  
  135.         ftnopt delremote [on|OFF]
  136.             This causes remote files to be deleted after successful
  137.             transfers by issuing a DELE <remotefilename> command to the
  138.             ftp server.
  139.  
  140.     Additional commands added to the ftp client include:
  141.  
  142.         detach <interface>
  143.             This causes the specified interface to be disconnected, ie.
  144.             the com port modem connection.
  145.  
  146.         exit
  147.             This causes FNOS to exit the ftp client and shut down FNOS
  148.             and exit back to DOS. Be aware that this is primarily
  149.             designed for use when the ftp session is the only one active.
  150.             The results of using the exit command with multiple sessions
  151.             active has not been tested or documented or even encouraged!
  152.  
  153.